package org.aswing;

extern class JComboBox extends Component, implements EditableComponent {
	function new(?p0 : Dynamic) : Void;
	function addActionListener(p0 : Dynamic, ?p1 : Int, ?p2 : Bool) : Void;
	function addSelectionListener(p0 : Dynamic, ?p1 : Int, ?p2 : Bool) : Void;
	function getComboBoxUI() : org.aswing.plaf.ComboBoxUI;
	function getEditor() : ComboBoxEditor;
	function getItemAt(p0 : Int) : Dynamic;
	function getItemCount() : Int;
	function getListCellFactory() : ListCellFactory;
	function getMaximumRowCount() : Int;
	function getModel() : ListModel;
	function getPopupList() : JList;
	function getSelectedIndex() : Int;
	function getSelectedItem() : Dynamic;
	function hidePopup() : Void;
	function isEditable() : Bool;
	function isPopupVisible() : Bool;
	function removeActionListener(p0 : Dynamic) : Void;
	function removeSelectionListener(p0 : Dynamic) : Void;
	function setEditable(p0 : Bool) : Void;
	function setEditor(p0 : ComboBoxEditor) : Void;
	function setListCellFactory(p0 : ListCellFactory) : Void;
	function setListData(p0 : Array<Dynamic>) : Void;
	function setMaximumRowCount(p0 : Int) : Void;
	function setModel(p0 : ListModel) : Void;
	function setPopupVisible(p0 : Bool) : Void;
	function setSelectedIndex(p0 : Int, ?p1 : Bool) : Void;
	function setSelectedItem(p0 : Dynamic, ?p1 : Bool) : Void;
	function showPopup() : Void;
	private var editor : ComboBoxEditor;
	private var popupList : JList;
	private function __editorActed(p0 : flash.events.Event) : Void;
	private function __listSelectionChanged(p0 : org.aswing.event.SelectionEvent) : Void;
	private function indexInModel(p0 : Dynamic) : Int;
}
